﻿USE [PlAzureNet]
GO
/****** Object:  Schema [PlAzureNet]    Script Date: 06/10/2011 12:47:46 ******/
CREATE SCHEMA [PlAzureNet] AUTHORIZATION [dbo]
GO
/****** Object:  Table [PlAzureNet].[Term]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Term](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
 CONSTRAINT [PK_Term] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[UserProvider]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[UserProvider](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_UserProviders] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Location]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Location](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Continent] [nvarchar](20) NOT NULL,
	[Country] [nvarchar](100) NULL,
	[State] [nvarchar](50) NULL,
	[ZipCode] [nvarchar](10) NULL,
	[City] [nchar](30) NULL,
	[District] [nvarchar](50) NULL,
	[Neighborhood] [nchar](100) NULL,
 CONSTRAINT [PK_Location] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Pleasure]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Pleasure](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[NameId] [bigint] NOT NULL,
 CONSTRAINT [PK_Pleasure] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Person]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Person](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ProviderId] [int] NOT NULL,
	[Rank] [decimal](18, 17) NOT NULL,
	[UserId] [nvarchar](20) NOT NULL,
	[Gender] [tinyint] NOT NULL,
	[IsAdult] [bit] NOT NULL,
 CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[MetaInfo]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[MetaInfo](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[NameId] [bigint] NOT NULL,
	[DescriptionId] [bigint] NOT NULL,
	[Value] [nvarchar](20) NOT NULL,
 CONSTRAINT [PK_MetaInfo] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[League]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[League](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[NameId] [bigint] NOT NULL,
	[DescriptionId] [bigint] NOT NULL,
	[LocationId] [bigint] NOT NULL,
	[LeagueType] [tinyint] NOT NULL,
	[CultureCode] [nchar](8) NOT NULL,
 CONSTRAINT [PK_League] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_League_DescriptionId] UNIQUE NONCLUSTERED 
(
	[DescriptionId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_League_NameId] UNIQUE NONCLUSTERED 
(
	[NameId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Translation]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Translation](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[TermId] [bigint] NOT NULL,
	[CultureCode] [nvarchar](8) NOT NULL,
	[Value] [nvarchar](255) NOT NULL,
 CONSTRAINT [PK_Translation] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_Translation_TermIdCultureCode] UNIQUE NONCLUSTERED 
(
	[TermId] ASC,
	[CultureCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Round]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Round](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[LeagueId] [bigint] NOT NULL,
	[Date] [date] NOT NULL,
	[IsClosed] [bit] NOT NULL,
 CONSTRAINT [PK_Round] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[xPleasureMetaInfo]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[xPleasureMetaInfo](
	[PleasureId] [int] NOT NULL,
	[MetaInfoId] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[xLocationPleasure]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[xLocationPleasure](
	[LocationId] [bigint] NOT NULL,
	[PleasureId] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[xLeaguePerson]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[xLeaguePerson](
	[LeagueId] [bigint] NOT NULL,
	[PersonId] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[Action]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[Action](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[PersonId] [bigint] NOT NULL,
	[RoundId] [bigint] NOT NULL,
	[PleasureId] [int] NOT NULL,
	[TimeStamp] [datetime2](7) NOT NULL,
	[RequestedQuantity] [decimal](18, 4) NOT NULL,
	[Request] [int] NOT NULL,
	[Result] [int] NULL,
	[ReceivedQuantity] [decimal](18, 4) NULL,
 CONSTRAINT [PK_Action_Id] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [PlAzureNet].[xActionMetaInfo]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [PlAzureNet].[xActionMetaInfo](
	[ActionId] [bigint] NOT NULL,
	[MetaInfoId] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  UserDefinedFunction [PlAzureNet].[SumActionQuantities]    Script Date: 06/10/2011 12:47:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [PlAzureNet].[SumActionQuantities]
(
	@roundId bigint,
	@pleasureId int,
	@request int
)
RETURNS decimal(18, 4)
AS
BEGIN

	DECLARE @ret decimal(18, 4)

	SET @ret = 
	(SELECT
		SUM(RequestedQuantity)
	FROM
		[Action] a
	WHERE
		a.RoundId = @roundId AND
		a.PleasureId = @pleasureId AND
		a.Request = @request)
	
	RETURN @ret
		
END
GO
/****** Object:  Default [DF_Action_Quantity]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Action] ADD  CONSTRAINT [DF_Action_Quantity]  DEFAULT ((0)) FOR [RequestedQuantity]
GO
/****** Object:  Default [DF_Person_Rank]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Person] ADD  CONSTRAINT [DF_Person_Rank]  DEFAULT ((0)) FOR [Rank]
GO
/****** Object:  Default [DF_Person_IsAdult]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Person] ADD  CONSTRAINT [DF_Person_IsAdult]  DEFAULT ((0)) FOR [IsAdult]
GO
/****** Object:  ForeignKey [FK_Action_Person_PersonId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Action]  WITH CHECK ADD  CONSTRAINT [FK_Action_Person_PersonId] FOREIGN KEY([PersonId])
REFERENCES [PlAzureNet].[Person] ([Id])
GO
ALTER TABLE [PlAzureNet].[Action] CHECK CONSTRAINT [FK_Action_Person_PersonId]
GO
/****** Object:  ForeignKey [FK_Action_Pleasure_PleasureId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Action]  WITH CHECK ADD  CONSTRAINT [FK_Action_Pleasure_PleasureId] FOREIGN KEY([PleasureId])
REFERENCES [PlAzureNet].[Pleasure] ([Id])
GO
ALTER TABLE [PlAzureNet].[Action] CHECK CONSTRAINT [FK_Action_Pleasure_PleasureId]
GO
/****** Object:  ForeignKey [FK_Action_Round_RoundId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Action]  WITH CHECK ADD  CONSTRAINT [FK_Action_Round_RoundId] FOREIGN KEY([RoundId])
REFERENCES [PlAzureNet].[Round] ([Id])
GO
ALTER TABLE [PlAzureNet].[Action] CHECK CONSTRAINT [FK_Action_Round_RoundId]
GO
/****** Object:  ForeignKey [FK_League_Location_LocationId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[League]  WITH CHECK ADD  CONSTRAINT [FK_League_Location_LocationId] FOREIGN KEY([LocationId])
REFERENCES [PlAzureNet].[Location] ([Id])
GO
ALTER TABLE [PlAzureNet].[League] CHECK CONSTRAINT [FK_League_Location_LocationId]
GO
/****** Object:  ForeignKey [FK_League_Term_DescriptionId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[League]  WITH CHECK ADD  CONSTRAINT [FK_League_Term_DescriptionId] FOREIGN KEY([DescriptionId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[League] CHECK CONSTRAINT [FK_League_Term_DescriptionId]
GO
/****** Object:  ForeignKey [FK_League_Term_NameId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[League]  WITH CHECK ADD  CONSTRAINT [FK_League_Term_NameId] FOREIGN KEY([NameId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[League] CHECK CONSTRAINT [FK_League_Term_NameId]
GO
/****** Object:  ForeignKey [FK_MetaInfo_Term_DescriptionId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[MetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_MetaInfo_Term_DescriptionId] FOREIGN KEY([DescriptionId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[MetaInfo] CHECK CONSTRAINT [FK_MetaInfo_Term_DescriptionId]
GO
/****** Object:  ForeignKey [FK_MetaInfo_Term_NameId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[MetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_MetaInfo_Term_NameId] FOREIGN KEY([NameId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[MetaInfo] CHECK CONSTRAINT [FK_MetaInfo_Term_NameId]
GO
/****** Object:  ForeignKey [FK_Person_UserProviders_ProviderId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Person]  WITH CHECK ADD  CONSTRAINT [FK_Person_UserProviders_ProviderId] FOREIGN KEY([ProviderId])
REFERENCES [PlAzureNet].[UserProvider] ([Id])
GO
ALTER TABLE [PlAzureNet].[Person] CHECK CONSTRAINT [FK_Person_UserProviders_ProviderId]
GO
/****** Object:  ForeignKey [FK_Pleasure_Term_NameId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Pleasure]  WITH CHECK ADD  CONSTRAINT [FK_Pleasure_Term_NameId] FOREIGN KEY([NameId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[Pleasure] CHECK CONSTRAINT [FK_Pleasure_Term_NameId]
GO
/****** Object:  ForeignKey [FK_Round_League_LeagueId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Round]  WITH CHECK ADD  CONSTRAINT [FK_Round_League_LeagueId] FOREIGN KEY([LeagueId])
REFERENCES [PlAzureNet].[League] ([Id])
GO
ALTER TABLE [PlAzureNet].[Round] CHECK CONSTRAINT [FK_Round_League_LeagueId]
GO
/****** Object:  ForeignKey [FK_Translation_Term_TermId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[Translation]  WITH CHECK ADD  CONSTRAINT [FK_Translation_Term_TermId] FOREIGN KEY([TermId])
REFERENCES [PlAzureNet].[Term] ([Id])
GO
ALTER TABLE [PlAzureNet].[Translation] CHECK CONSTRAINT [FK_Translation_Term_TermId]
GO
/****** Object:  ForeignKey [FK_xActionMetaInfo_Action_ActionId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xActionMetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_xActionMetaInfo_Action_ActionId] FOREIGN KEY([ActionId])
REFERENCES [PlAzureNet].[Action] ([Id])
GO
ALTER TABLE [PlAzureNet].[xActionMetaInfo] CHECK CONSTRAINT [FK_xActionMetaInfo_Action_ActionId]
GO
/****** Object:  ForeignKey [FK_xActionMetaInfo_MetaInfo_MetaInfoId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xActionMetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_xActionMetaInfo_MetaInfo_MetaInfoId] FOREIGN KEY([MetaInfoId])
REFERENCES [PlAzureNet].[MetaInfo] ([Id])
GO
ALTER TABLE [PlAzureNet].[xActionMetaInfo] CHECK CONSTRAINT [FK_xActionMetaInfo_MetaInfo_MetaInfoId]
GO
/****** Object:  ForeignKey [FK_xLeaguePerson_League_LeagueId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xLeaguePerson]  WITH CHECK ADD  CONSTRAINT [FK_xLeaguePerson_League_LeagueId] FOREIGN KEY([LeagueId])
REFERENCES [PlAzureNet].[League] ([Id])
GO
ALTER TABLE [PlAzureNet].[xLeaguePerson] CHECK CONSTRAINT [FK_xLeaguePerson_League_LeagueId]
GO
/****** Object:  ForeignKey [FK_xLeaguePerson_Person_PersonId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xLeaguePerson]  WITH CHECK ADD  CONSTRAINT [FK_xLeaguePerson_Person_PersonId] FOREIGN KEY([PersonId])
REFERENCES [PlAzureNet].[Person] ([Id])
GO
ALTER TABLE [PlAzureNet].[xLeaguePerson] CHECK CONSTRAINT [FK_xLeaguePerson_Person_PersonId]
GO
/****** Object:  ForeignKey [FK_xLocationPleasure_Location_LocationId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xLocationPleasure]  WITH CHECK ADD  CONSTRAINT [FK_xLocationPleasure_Location_LocationId] FOREIGN KEY([LocationId])
REFERENCES [PlAzureNet].[Location] ([Id])
GO
ALTER TABLE [PlAzureNet].[xLocationPleasure] CHECK CONSTRAINT [FK_xLocationPleasure_Location_LocationId]
GO
/****** Object:  ForeignKey [FK_xLocationPleasure_Pleasure_PleasureId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xLocationPleasure]  WITH CHECK ADD  CONSTRAINT [FK_xLocationPleasure_Pleasure_PleasureId] FOREIGN KEY([PleasureId])
REFERENCES [PlAzureNet].[Pleasure] ([Id])
GO
ALTER TABLE [PlAzureNet].[xLocationPleasure] CHECK CONSTRAINT [FK_xLocationPleasure_Pleasure_PleasureId]
GO
/****** Object:  ForeignKey [FK_xPleasureMetaInfo_MetaInfo_MetaInfoId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xPleasureMetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_xPleasureMetaInfo_MetaInfo_MetaInfoId] FOREIGN KEY([MetaInfoId])
REFERENCES [PlAzureNet].[MetaInfo] ([Id])
GO
ALTER TABLE [PlAzureNet].[xPleasureMetaInfo] CHECK CONSTRAINT [FK_xPleasureMetaInfo_MetaInfo_MetaInfoId]
GO
/****** Object:  ForeignKey [FK_xPleasureMetaInfo_Pleasure_PleasureId]    Script Date: 06/10/2011 12:47:46 ******/
ALTER TABLE [PlAzureNet].[xPleasureMetaInfo]  WITH CHECK ADD  CONSTRAINT [FK_xPleasureMetaInfo_Pleasure_PleasureId] FOREIGN KEY([PleasureId])
REFERENCES [PlAzureNet].[Pleasure] ([Id])
GO
ALTER TABLE [PlAzureNet].[xPleasureMetaInfo] CHECK CONSTRAINT [FK_xPleasureMetaInfo_Pleasure_PleasureId]
GO
